package cn.infomany.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author zjb
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 盐
     */
    private String salt;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 状态  0：禁用   1：正常
     */
    private Integer status;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 创建时间
     */
    private Date createTime;

    private String userInfoNickname;

    private String headIcon;

    private String personalityDescription;

    /**
     * 用户类型：250 个人账户  251商家账户 252 机构账户 348下属机构账户 427服务人员账户 482 商城用户  
     */
    private Integer userType;

    private Date lastLoginTime;

    private Date lastLogoutTime;

    private Integer longestTime;

    private String lastOperationId;

    private Date lastOperationTime;

    private Boolean userLock;

    private Date lastChangePwdTime;

    private String userToken;

    private Boolean emailCheck;

    private String emailCheckCode;

    private Integer userGrade;

    private String field1;

    private String field2;

    private String field3;

    private String field4;

    private String field5;

    private String pwdSecret;

    private Boolean del;

    /**
     * 和user_id保持一致
     */
    private String userInfoId;

}
